﻿<UserControl x:Class="Xinnos.Lca.Yacht.Analyzer.View.ProgramProfilePanel"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:properties="clr-namespace:Xinnos.Lca.Yacht.Analyzer.View.Properties" 
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="60" />
            <RowDefinition Height="30" />
            <RowDefinition />
            <RowDefinition />
        </Grid.RowDefinitions>
        <TextBlock Grid.Row="0" Text="{Binding Product}" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="18" FontWeight="Bold" Background="White" />
        <Grid Grid.Row="1" Background="WhiteSmoke">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="*" />
                <ColumnDefinition Width="Auto" />
                <ColumnDefinition Width="Auto" />
            </Grid.ColumnDefinitions>
            <TextBlock Grid.Column="0" Text="{Binding DetailName}" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="12" Margin="5" />
            <TextBlock Grid.Column="1" Text="{Binding Version}" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="12" Margin="5" />
            <TextBlock Grid.Column="2" VerticalAlignment="Center" HorizontalAlignment="Center" Margin="10,0,10,0" >
                <Hyperlink RequestNavigate="OnDeploymentRequestNavigate" NavigateUri="http://www.codeplex.com">Official Web Site</Hyperlink>
            </TextBlock>
        </Grid>
        <GroupBox Grid.Row="2" Header="Developers">
            <ListView ItemsSource="{Binding Members}" Background="WhiteSmoke">
                <ListView.View>
                    <GridView>
                        <GridViewColumn Header="Name" DisplayMemberBinding="{Binding English}" />
                        <GridViewColumn Header="Mail" DisplayMemberBinding="{Binding Mail}" />
                        <GridViewColumn Header="Web" DisplayMemberBinding="{Binding Link}" />
                    </GridView>
                </ListView.View>
            </ListView>
        </GroupBox>
        <GroupBox Grid.Row="3" Header="Modules">
            <ListView ItemsSource="{Binding Modules}" Background="WhiteSmoke">
                <ListView.View>
                    <GridView>
                        <GridViewColumn Header="Name" DisplayMemberBinding="{Binding Name}" />
                        <GridViewColumn Header="Version" DisplayMemberBinding="{Binding Version}" />
                        <GridViewColumn Header="Company" DisplayMemberBinding="{Binding Company}" />
                    </GridView>
                </ListView.View>
            </ListView>
        </GroupBox>
    </Grid>
</UserControl>
